package com.yang.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yang.beans.Weibo;
import com.yang.dao.WeiboDao;
import com.yang.service.WeiboService;

@Service
@Transactional
public class WeiboServiceImpl extends ServiceImpl<WeiboDao, Weibo> implements WeiboService{

	@Override
	public Page<Weibo> selectUserPage(Page<Weibo> page, Integer id) {
        page.setRecords(baseMapper.selectWeiboPageByUserId(page, id));
        return page;
    }

	@Override
	public Page<Weibo> getHotWeiboPage(Page<Weibo> page) {
		page.setRecords(baseMapper.getHotWeiboPage(page));
		return page;
	}

}
